package com.owen.dao;

import com.owen.pojo.Fenlei;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FenleiDao {

    public List<Fenlei> findFenlei();

    public List<Fenlei> findByFenlei(Fenlei fenlei);

    public Fenlei findById(@Param("id") Long id);

    public Integer deleteById(@Param("id") Long id);

    public Integer updateById(Fenlei fenlei);
    
    public Integer addFenlei(Fenlei fenlei);

    public Integer deleteBatch(Integer [] ids);

    public List<Fenlei> findCommodityFenlei(Integer id);

}
